const math = require('./mathUtils')

console.log('hello webpack');
console.log(math.add(1, 2));
console.log(math.mul(1, 2));
console.log(Number.MAX_VALUE - 1 === Number.MAX_VALUE);

require('../css/normal.css')
require('../less/base.less')

import Vue from 'vue'
import HelloWorld from '../vue/HelloWorld.vue'
const cpn = {
  template: `<div id="app">
		<p>{{uname}}</p>
	</div>`,
  data() {
    return {
      uname: '我是cpn组件'
    }
  }
}

new Vue({
  el: "#app",
  template: `<div id="app">
	<h2>{{message}}</h2>
	<cpn></cpn>
	<HelloWorld/>
	</div>`,
  data: {
    message: ""
  },
  components: {
    cpn,
    HelloWorld
  }
})